import axiosConfig from "./axiosConfig";

export default {
  // 1云盘
  findFile(params) {
    return axiosConfig.hnccloudGet("/findFile", params);
  },
  // 1删除云盘
  delFile(params) {
    return axiosConfig.hnccloudGet("/delFile", params);
  },
  //详情
  readFile(params) {
    return axiosConfig.hnccloudGet("/readFile", params);
  },
  //编辑
  editFile(params) {
    return axiosConfig.hnccloudPost("/editFile", params,{
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  //上传
  uploadFile(companyId,params) {
    params.append("companyId", companyId);
    return axiosConfig.hnccloudPost("/uploadFile", params,{
      headers: {
        "Content-Type": "multipart/form-data"
      }
    });
  },
  findSize(params) {
    return axiosConfig.hnccloudGet("/findSize", params);
  },
}
